// pages/stock-operation-detail/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    headerHint: "该成员炒作此股变动提醒",
    switchChecked: true,
    strategyList: [{
        strategyName: "板块",
        strategyDesc: "电动车，新能源"
      },
      {
        strategyName: "逻辑",
        strategyDesc: "你猜我说不说这个逻辑，不想猜，我也不想说，反正就是不开心"
      },
      {
        strategyName: "建仓价格",
        strategyDesc: "58.00"
      },
      {
        strategyName: "目标价格",
        strategyDesc: "68.00"
      },
      {
        strategyName: "备注",
        strategyDesc: "还是涨一些就走吧"
      },
    ],
    strategyDetailed: [{
      stockName: "宁德时代",
      operation: "卖出200",
      position: "29%",
      operationTime: "2020/05/09"
    }, {
      stockName: "宁德时代",
      operation: "卖出200",
      position: "29%",
      operationTime: "2020/05/09"
    }, {
      stockName: "宁德时代",
      operation: "卖出200",
      position: "29%",
      operationTime: "2020/05/09"
    }, {
      stockName: "宁德时代",
      operation: "卖出200",
      position: "29%",
      operationTime: "2020/05/09"
    }, {
      stockName: "宁德时代",
      operation: "卖出200",
      position: "29%",
      operationTime: "2020/05/09"
    }]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  },

  /**
   * 开关变化
   */
  switchChange: function(event) {
    this.setData({
      switchChecked: event.detail.value
    })
  }
})